<?php
class Seo_Form_Page extends Zen_Form
{
    public function init ()
    {
        parent::init();
        $this->setName('form');
        
        $title = new Zend_Form_Element_Text('title',
        array('required' => TRUE ,
          'label' => 'Заголовок: ' , 
          'description'=>'TITLE',
          'maxlength' => '300' , 
          'class'=>'zend_text small',
          'validators' => array(array('StringLength' , true , array(0 , 300 , 'utf-8')))));
        
		$title->setFilters ( array ('StringTrim','StripTags'));
        
        $keywords = new Zend_Form_Element_Text('keywords',
        array('required' => false ,
          'label' => 'Ключевые слова: ' , 
          'maxlength' => '300' , 
          'description'=>'META KEYWORDS',
          'class'=>'zend_text small',  
          'validators' => array(array('StringLength' , true , array(0 , 300 , 'utf-8')))));
        $keywords->setFilters ( array ('StringTrim', 'StripTags' ));
        
        $description = new Zend_Form_Element_Textarea('description',
        array('required' => false ,
          'label' => 'Описание: ', 
          'maxlength' => '300', 
          'description'=>'META DESCRIPTION',
          'class'=>'zend_text_area zend_text small',
          'rows'=>'3',	  
          'validators' => array(array('StringLength' , true , array(0 , 300 , 'utf-8')))));
        $description->setFilters ( array ('StringTrim', 'StripTags' ));
        
        

    	
        
        $sumbit=new Zend_Form_Element_Submit('submit',array('label'=>'Сохранить'));
        $this->addElements(array($title,$keywords,$description,$sumbit));
    }
}